# run
# python gevent-test.py
 
from gevent import wsgi
import time
 
def hello_world(environ, start_response):
    time.sleep(1)
    status = '200 OK'
    res = "hello world."
    response_headers = [('Content-type','text/plain')]
    start_response(status, response_headers)
    return [res]
 
wsgi.WSGIServer(('', 9090), hello_world, log=None).serve_forever()
